if __name__ == '__main__':
     for i in range(1000,10000):
         qian = i // 1000
         bai = i % 1000 // 100
         shi = i % 1000 % 100 // 10
         ge = i % 10
         if i==qian**4+bai**4+shi**4+ge**4:
            print(f"{i}是四维水仙花数")